import { Component } from '@angular/core';
import {IonicPage, NavController, NavParams, ViewController} from 'ionic-angular';

/**
 * Generated class for the DeviceSetPage page.
 *
 * See https://ionicframework.com/docs/components/#navigation for more info on
 * Ionic pages and navigation.
 */

@IonicPage()
@Component({
  selector: 'page-device-set',
  templateUrl: 'device-set.html',
})
export class DeviceSetPage {

  brightness = 35 ;
  humidity = 40;
  temp = 26;
  device_name = '';

  constructor(public navCtrl: NavController, public navParams: NavParams,public viewCtrl: ViewController) {

    this.device_name = navParams.get('name');
  }

  ionViewDidLoad() {
    console.log('ionViewDidLoad DeviceSetPage');
  }

  close_modal(){
    this.viewCtrl.dismiss();
  }

}
